package controllers

import (
	"go_wep_demo/logic"

	"github.com/gin-gonic/gin"
)

func GetTypeListHandler(c *gin.Context) {
	list, err := logic.GetTypeList()
	if err != nil {
		ResponseError(c, CodeSystemBusy)
		return
	}
	var m = map[string]interface{}{
		"list": list,
	}
	ResponseSuccess(c, m)
}
